package com.zenithsun.news.solr.model;

import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;

import com.zenithsun.news.newsinfo.model.Newsinfo;

public class NewsInfo {
	
	//<field column="id" name="id"/>
    //<field column="title" name="title_mmseg4j"/>
	//<field column="subTitle" name="subTitle_mmseg4j"/>
    //<field column="nabstract" name="nabstract_mmseg4j"/>
	//<field column="keyword" name="keyword_mmseg4j"/>
	//<field column="publish_time" name="publishTime_mmseg4j"/>
	//<field column="publish_group" name="publishGroup_mmseg4j"/>
	//<field column="is_top" name="isTop_mmseg4j"/>
	//<field column="state" name="state_mmseg4j"/>
	//<field column="type" name="type_mmseg4j"/>
    //<field column="news_columns_id" name="column_mmseg4j"/>
	@Field
    private String id;
	@Field
	private String title_mmseg4j;
	@Field
	private String subTitle_mmseg4j;
	@Field
	private String nabstract_mmseg4j;
	@Field
	private String keyword_mmseg4j;
	@Field
	private Date publishTime_mmseg4j;
	@Field
	private String publishGroup_mmseg4j;
	@Field
	private String isTop_mmseg4j;
	@Field
	private String state_mmseg4j;
	@Field
	private String type_mmseg4j;
	@Field
	private String column_mmseg4j;
	@Field
	private String coverPath_mmseg4j;
	@Field
	private String content_mmseg4j;
	public NewsInfo() {
		// TODO Auto-generated constructor stub
	}
	
	public NewsInfo(Newsinfo info){
		this.id = info.getId();
		this.title_mmseg4j = info.getTitle();
		this.subTitle_mmseg4j = info.getSubTitle();
		this.nabstract_mmseg4j = info.getNabstract();
		this.keyword_mmseg4j = info.getKeyword();
		this.publishTime_mmseg4j = info.getPublishTime();
		this.publishGroup_mmseg4j = info.getPublishGroup();
		this.isTop_mmseg4j = info.getIsTop()+"";
		this.state_mmseg4j = info.getState()+"";
		this.type_mmseg4j = info.getType();
		this.column_mmseg4j = info.getNewsColumns().getId();
		this.coverPath_mmseg4j = info.getCoverPath();
		this.content_mmseg4j = info.getContent();
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle_mmseg4j() {
		return title_mmseg4j;
	}
	public void setTitle_mmseg4j(String title_mmseg4j) {
		this.title_mmseg4j = title_mmseg4j;
	}
	public String getSubTitle_mmseg4j() {
		return subTitle_mmseg4j;
	}
	public void setSubTitle_mmseg4j(String subTitle_mmseg4j) {
		this.subTitle_mmseg4j = subTitle_mmseg4j;
	}
	public String getNabstract_mmseg4j() {
		return nabstract_mmseg4j;
	}
	public void setNabstract_mmseg4j(String nabstract_mmseg4j) {
		this.nabstract_mmseg4j = nabstract_mmseg4j;
	}
	public String getKeyword_mmseg4j() {
		return keyword_mmseg4j;
	}
	public void setKeyword_mmseg4j(String keyword_mmseg4j) {
		this.keyword_mmseg4j = keyword_mmseg4j;
	}
	public Date getPublishTime_mmseg4j() {
		return publishTime_mmseg4j;
	}
	public void setPublishTime_mmseg4j(Date publishTime_mmseg4j) {
		this.publishTime_mmseg4j = publishTime_mmseg4j;
	}
	public String getPublishGroup_mmseg4j() {
		return publishGroup_mmseg4j;
	}
	public void setPublishGroup_mmseg4j(String publishGroup_mmseg4j) {
		this.publishGroup_mmseg4j = publishGroup_mmseg4j;
	}
	public String getIsTop_mmseg4j() {
		return isTop_mmseg4j;
	}
	public void setIsTop_mmseg4j(String isTop_mmseg4j) {
		this.isTop_mmseg4j = isTop_mmseg4j;
	}
	public String getState_mmseg4j() {
		return state_mmseg4j;
	}
	public void setState_mmseg4j(String state_mmseg4j) {
		this.state_mmseg4j = state_mmseg4j;
	}
	public String getType_mmseg4j() {
		return type_mmseg4j;
	}
	public void setType_mmseg4j(String type_mmseg4j) {
		this.type_mmseg4j = type_mmseg4j;
	}
	public String getColumn_mmseg4j() {
		return column_mmseg4j;
	}
	public void setColumn_mmseg4j(String column_mmseg4j) {
		this.column_mmseg4j = column_mmseg4j;
	}
	
}
